<template>
    <div>
    <div class="title">放假去哪儿</div>
    <ul>
      <li v-for="item of weekendList" :key="item.id">
        <div class="item-img-wrapper">
            <img class="item-img" :src='item.imgUrl'/>
         </div>
        <div class="item-info">
        <p class="item-title">{{item.title}}</p>
        <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
    </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  data () {
    return {
      weekendList: [{
        id: '0001',
        imgUrl: 'http://img1.qunarzz.com/sight/source/1509/fb/c45a951a9b4305.jpg_r_640x214_26fcfd26.jpg',
        title: '温州动人秋色',
        desc: '细数温州那些美到陶醉的赏秋地'
      }, {
        id: '0002',
        imgUrl: 'http://img1.qunarzz.com/sight/source/1510/c1/afe3ab32b3bc23.jpg_r_640x214_beb61760.jpg',
        title: '精致暖汤',
        desc: '天然高品质温泉，这是冬天秀美容颜首选之地，让你疲惫的身影在这里消失的无影无踪'
      }, {
        id: '0003',
        imgUrl: 'http://img1.qunarzz.com/sight/source/1505/da/2d9fbf88a7ed69.jpg_r_640x214_504a958c.jpg',
        title: '温州必打卡',
        desc: '除了小商品，还有这些美景也在等你'
      }]
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/mixins.styl'
 .title
    margin-top: .2rem
    line-height: .8rem
    background: #eee
    text-indent: .2rem
   .item-img-wrapper
     overflow: hidden
     height: 0
     padding-bottom: 33.9%
    .item-img
      width: 100%
    .item-info
      padding: .1rem
    .item-title
       line-height: .54rem
       font-size: .32rem
       ellipsis()
    .item-desc
       line-height: .4rem
       color: #ccc
       ellipsis()
</style>
